{include file=header.html}
<script>
var url = "{$site_url}";
//获取关键字
function get_keywords(){
	var keywords = $('#location_input').val();
	location.href = url+"/index.php?app=search&act=store&keyword="+keywords;
}
</script>
<!-- 内容 -->
	<div class="content">
		<ul class="location f-cb" id="location">
			<li class="locat-li">
				<a href="{url app=search&act=store}">全部店铺</a>
			</li>
			<li>
				<div class="location-input f-cb">
					<input type="text" value="{if $search_keyword}{$search_keyword}{else}在此条件下查找{/if}" onfocus="this.value=''" onblur="if(!value){this.value=defaultValue}" id="location_input" />
					<a href="javascript:void(0)" onclick="get_keywords()" class="fixpng"></a>
				</div>
			</li>
		</ul>
		<div class="listswrap f-cb">
			<div class="list-plt f-cb" {if !$stores}style="display:none;"{/if}>
				<div class="list-pltl">
					<div style="padding-left:30px;color:#e6445b;">找到店铺：{$page_info.item_count}个</div>
				</div>
				<div class="filter-next">
					{$page_info.curr_page}/{$page_info.page_count}&nbsp;&nbsp;&nbsp;&nbsp;
						<!--{if $page_info.prev_link}--><a href="{$page_info.prev_link}">&#xe6d1;</a><!--{else}--><a style="border-color:#ccc;color:#ccc" href="javascript:;">&#xe6d1;</a><!--{/if}-->
						<!--{if $page_info.next_link}--><a href="{$page_info.next_link}">&#xe6d4;</a><!--{else}--><a style="border-color:#ccc;color:#ccc" href="javascript:;">&#xe6d4;</a><!--{/if}-->
				</div>
			</div>
			<!--{if $stores}-->
			<ul class="list-sc">
				<!--{foreach from=$stores item=store}-->
				<li class="f-cb">
					<div class="f-fl">
						<div>
							<a href="{url app=store&id=$store.store_id}" target="_blank" title="{$store.store_name|escape}">
								<img src="{$store.store_logo}"  width="145" height="145" alt="{$store.store_name|escape}" />
							</a>
						</div>
						<h5 class="title">{$store.store_name|escape}</h5>
						<div class="contact f-cb">
							<a href="{url app=store&id=$store.store_id}" target="_blank" class="go b-radius">进入店铺</a>
							<!--{if $store.im_qq}-->
                            			<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin={$store.im_qq}&amp;site=qq&amp;menu=yes">
                            				<img src="{res file=images/icon/qq-img.gif}" alt="QQ">
                            			</a>
                            			<!--{/if}-->
                            			<!--{if $store.im_ww}-->
                            			<a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid={$store.im_ww}&siteid=cntaobao&status=1&charset=utf-8">
                            				<img src="{res file=images/member/wangwang.jpg}" alt="旺旺">
                            			</a>
                            			<!--{/if}-->
						</div>
					</div>
					<!--{foreach from=$store.goods key=k name=goods item=item}-->
					<div class="f-fl f-tac">
						<p>
							<a href="{url app=goods&id=$item.goods_id}" target="_blank" title="{$item.goods_name|escape}">
								<img src="{$item.default_image}" alt="{$item.goods_name|escape}" width="180" height="180" />
							</a>
						</p>
						<p class="price">{if $item.price}{$item.price|price}{/if}</p>
					</div>
					<!--{/foreach}-->
				</li>
				<!--{/foreach}-->
			</ul>
			<!-- {else} -->
			<div class="no-result">
			    <table>
			      <tr>
			        <td>
			            <p><img src="{res file=images/icon/no_result.png}" /></p>
			            <p><strong>抱歉，没有找到相关店铺。</strong><br/>
                        您可以联系万菱导购团队，我们将免费帮你找货。<br/>
                        在线QQ：972646420<br/>
                        电话：4008-333-685<br/>
                        </p>
			            <p><a href="{url app=search&act=store}" class="linkbtn">查看全部店铺>></a></p>
			          </td>
			      </tr>
			    </table>
			</div>
			<!-- {/if} -->
			<div class="goods-page">
				{include file=goods.page.bottom.html}
			</div>
		</div>
	</div>
{include file=footer.index.html}